home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ WinNT AutoLogin NW Enable.xpl < prev    next >
Text File  |  1999-09-16  |  2KB  |  54 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Login\Auto Login (NetWare)"
  5. "NAME"="General"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable auto login"
  9. "DESCRIPTION 1"="Auto login can be used to eliminate the "Press Ctrl+Alt+Del to login" screen."
  10. "DESCRIPTION 2"="Enable auto login ONLY if you have set the correct values before with the "Settings" plug-in."
  11. "DESCRIPTION 3"="Be advised, your password and user name information will be kept in the system registry in a non-encrypted form and could be revealed if anyone were to logon locally to your machine and open the Registry Editor.  We suggest only using this if you have non-critical data on your computer or if the machine is located in a secure physical environment."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17.  
  18.  
  19. sRP="HKLM\SOFTWARE\NOVELL\NWGINA\Login\"
  20. Sub Plugin_Initialize 
  21.  if RegPathExists(sRP) then
  22.   i=RegReadValue(srp&"NetWareAutoAdminLogon")
  23.   if i=1 then 
  24.    SetUIElement 1,true
  25.   end if
  26.  else
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  b=GetUIElement(1)
  36.  if b=true then
  37.   call RegWriteValue(srp&"NetWareAutoAdminLogon","1",1)
  38.  else
  39.   s=RegReadValue(srp&"NetWareAutoAdminLogon")
  40.  
  41.   if IsNull(s)=false and Len(s)>0 then
  42.      Call RegDeleteValue(srp&"NetWareAutoAdminLogon")
  43.   end if
  44.  end if
  45.  
  46.  Call Logoff()
  47. End Sub
  48.  
  49. Sub Plugin_Terminate 
  50. End Sub
  51.  
  52.  
  53.  
  54.